package com.caigou.enums;

import lombok.Getter;

@Getter
public enum  ResponseEnum {

    SUCCESS(200, "请求成功"),

    COLLECTION_SUCCESS(200,"已收藏"),

    UN_COLLECTION_SUCCESS(200,"已取消收藏"),

    LIKE_SUCCESS(200,"已点赞"),

    UN_LIKE_SUCCESS(200,"已取消点赞"),

    PATH_ERROR(404, "请求路径错误"),

    PARAM_ERROR(400,"传入参数有误"),

    ALIAS_KEYWORD_LIKE(400,"别名与关键词重复"),

    NO_BID_DETAIL(400,"未找到标讯详情"),

    NO_FEEDBACK_DETAIL(400,"未知意见反馈详情"),

    COMMIT_ERROR(400,"提交失败"),

    DUPLICATE_KEYWORD_ERROR(400,"关键词和别名不可重复"),

    CONTAIN_KEYWORD_ERROR(400,"关键词包含重复别名"),

    DUPLICATE_ALIAS_ERROR(400,"无法添加重复别名"),

    DUPLICATE_ALIAS_KEYWORD_ERROR(400,"关键词和别名不可重复"),

    KEYWORD_UPDATE_ERROR(400,"关键词修改失败"),

    PRIVILEGE_ERROR(400,"参数错误"),

    NOT_FIND_DATA(400,"未搜索到数据"),

    NOT_FIND_IDS(400,"未传入频道ids"),

    UNKNOWN_PRIVILEGE(400,"未知权限"),

    UNKNOWN_CHANNEL_ID(400,"参数中包含未知频道或栏目id"),

    UNKNOWN_PLATE_ID(400,"参数中包含未知板块id"),

    ROLE_CODE_REPEAT(400,"无法重复添加角色名称或角色代码"),

    NO_TEL(400,"未填写手机号"),

    MSG_MODEL_ERROR(400,"短信模板错误"),

    MSG_ERROR(400,"短信验证码错误"),

    USER_REGISTERED(400,"该手机号已注册过,请登录"),

    NOT_FIND_PAGE(400,"未找到表单信息"),

    NO_TOKEN(401,"登录信息已过期,请重新登录"),

    TOKEN_VERIFICATION_FAILED(401,"登录时间已超时,请重新登录"),

    NO_FIND_ROLE(400,"未找到角色码"),

    NO_FIND_SECTION_VALUE(400,"未找到栏目编码"),

    NO_FIND_STAFF(400,"未知员工"),

    REPEAT_PHONE_NUMBER(400,"手机号已注册,请换新手机号"),

    UPDATE_TEL_ERROR(400,"修改手机号失败"),

    NO_FIND_USER(400,"未知用户"),

    NO_AUTHORIZATION(400,"无用户授权信息,或授权已过期"),

    REPEAT_STAFF(400,"已添加过该员工"),

    NO_PASSWORD(400,"新增用户未传入密码"),

    NO_PHONE_NUMBER(400,"未传入员工手机号"),

    UNKNOWN_USER(400,"该用户手机号未注册"),

    UPLOAD_FAILED(400,"上传失败,请稍后再试"),

    NO_REGISTER(400,"员工未注册"),

    HAS_STAFF(400,"已添加过该员工"),

    REGISTER_FAIL(400,"注册失败"),

    HAS_USER_ERROR(400,"该角色下包含用户,无法删除角色"),

    NO_FIND_DEPARTMENT(400,"未找到用户部门"),

    NO_COMMENT_ID(400,"未传入文章id"),

    NO_STAFF_ID(400,"未传入员工id"),

    NO_WX_OPEN_ID(400,"用户未绑定微信账号"),

    NO_WORDS_ID(400,"未传入敏感词id"),

    HAS_DELETE(400,"词汇已删除"),

    NOT_FOUND_COMMENT(400,"未找到评论,无法回复"),

    NOT_FOUND_FORM_ID(400,"未传入表单id"),

    NOT_FOUNT_DATE(400,"未查询到表单数据"),

    NO_ACCESS(403,"无权限访问"),

    NO_FIND_DATA(500,"未查询到订单编号"),

    PROHIBIT_DELETE(500,"该表单已有答题数据,禁止删除"),

    NO_FIND_SET(500,"未找到表单设置信息"),

    UN_ENABLE_SET(500,"未启用该表单,请联系管理员"),

    FORBIDDEN_ACCOUNT(403,"该账户已被禁用"),

    MSG_SEND_ERROR(500,"发送短信验证码失败,请检查手机号信息是否正确"),

    ADDED_STARS(400,"已点赞过,无需重复点赞"),

    NO_ARTICLE_ID(400,"未找到到文章"),


    ADDED_LIKE(400,"已点赞过,无需重复点赞"),

    REQUEST_ABORTED(400,"请求失败"),

    DELETE_ERROR(400,"删除失败,请检查传入参数"),

    NOT_FIND_PICTURE_NAME(500,"未获取到上传图片文件类型"),

    SERVER_ERROR(500, "服务器内部错误"),




    // 临时的异常编码--后续进行改动
    ACCOUNT_NOT_EXIST(-1,"登录失败，账号或密码错误！！"),

    // 文章表操作异常码（后台）
    ARTICLE_EXIST(-101,"唯一ID重复，内容添加失败，请重新获取唯一ID"),
    ARTICLE_NOT_EXIST(-102,"内容操作失败，请检查当前内容是否存在"),
    ARTICLE_TITLE_NOT_EXIST(-103,"内容推送失败，当前文章没有添加对应类型标题"),
    ARTICLE_DELETE_ERROR(-104,"当前内容无法删除！请取消“推荐位”推荐后，再次尝试"),
    ARTICLE_NOT_CHANNEL_DATA(-105,"获取发布位置失败，请先将当前内容进行“推荐位”设置"),
    ARTICLE_AUDIT_NOT_PERMISSION(-105,"您无权对当前内容进行审核操作"),
    ARTICLE_TITLE_EXIST(-106,"您所添加的标题类型已存在，不能重复添加"),
    ARTICLE_ENTRY_EXIST(-107,"您要删除的词条结构不存在，请刷新重试"),
    CHANNEL_RECOMMEND_LIST_DELETE_ERROR(-108,"内容已被推荐，无法删除数据"),
    CHANNEL_RECOMMEND_LIST_MAX_ERROR(-109,"该推荐组已达最大数量，无法进行推荐"),
    CHANNEL_RECOMMEND_LIST_EXITS_ERROR(-110,"无法重复推荐相同内容"),
    CHANNEL_RECOMMEND_LIST_TYPE_ERROR(-110,"文章类型与该栏目不符"),
    CHANNEL_LOCK_ERROR(-111,"未推荐内容无法锁定"),
    DELETE_HTML_FILE_ERROR(-112,"当前内容静态资源删除失败，请联系管理员"),
    ARTICLE_MINE_DELETE_ERROR(-113,"当前内容无法删除！登录用户信息异常"),
    ARTICLE_TITLE_DELETE_ERROR(-114,"当前内容无法删除！"),
    MOBILE_ARTICLE_NOT_EXIST(-115,"您访问的内容不存在，或已下架！"),
    // 广告管理
    CONTRACT_IS_PUBLIC(-116,"当前合同已被使用，无法删除！"),
    TIME_QUANTUM_ERROR(-117,"所选时间段已被占用，无法添加！"),
    CONTRACT_QUANTUM_ERROR(-118,"所选合同在当前广告位已被使用，无法添加！"),
    AD_LIST_ERROR(-119,"所选广告不存在或者不是正在引用的预设广告，无法进行当前操作！"),
    AD_LIST_DELETE_ERROR(-120,"所选广告不存在或者不是未引用的预设广告，无法删除！"),
    AD_CONTRACT_NUMBER_ERROR(-121,"广告参数异常，新增广告失败！"),
    AD_LIST_CHANGE_ERROR(-122,"所选广告不存在，无法执行替换操作"),
    AD_LIST_CHANGE_TIME_ERROR(-123,"所选广告尚未到开始时间，无法执行替换操作"),
    AD_LIST_CHANGE_STATUS_ERROR(-124,"当前广告正在使用，不需要执行替换操作"),
    AD_LIST_TIME_ERROR(-125,"广告起止时间段异常，填充失败"),
    CONTRACT_NOT_FONT(-126,"合同不存在，添加失败！"),
    // 特刊管理
    SPECIAL_ISSUE_RELEASE_ERROR(-127,"最少有“特刊标题”和1条“特刊列表内容”"),
    SPECIAL_ISSUE_PARAM_ERROR(-128,"请求参数错误"),
    SPECIAL_ISSUE_TITLE_COUNT_ERROR(-129,"特刊标题只能有一个”"),
    // 采集系统
    COLLECTION_TIME_SAVE_ERROR(-130,"保存失败，已有相同配置"),
    COLLECTION_TIME_ERROR(-131,"请先设置采集时间"),
    // 智能表单
    CATALOG_EXIST_ERROR(-140,"所保存的目录已经存在，请前往进行查看或修改"),
    CATALOG_NOT_EXIST_ERROR(-141,"所保存的目录不存在，请查看参数是否正常"),
    CATALOG_DELETE_ERROR(-142,"当前目录无法删除，请查看参数是否正常"),
    FRONT_CATALOG_EXIST_ERROR(-143,"当前数据不存在，请检查访问地址"),
    FRONT_TOKEN_ERROR(-144,"登录验证未通过"),
    FRONT_CODE_ERROR(-145,"邀请码验证未通过"),
    FRONT_START_TIME_ERROR(-146,"开始时间验证未通过"),
    FRONT_END_TIME_ERROR(-147,"结束时间验证未通过"),
    SUBMIT_ANSWER_ERROR(-148,"填写信息错误，请检查后重试"),
    SUBMIT_COUNT_ERROR(-149,"提交次数已达上限"),
    SUBMIT_UPDATE_ERROR(-150,"当前表单不允许进行修改"),
    SUBMIT_COUNT_ALL_ERROR(-151,"您已完成填报"),
    SUBMIT_COUNT_DAY_ERROR(-152,"您今天已完成填报"),
    FRONT_CATALOG_STATUS_ERROR(-153,"您访问的内容已关闭"),
    FRONT_SUBMIT_COUNT_ERROR(-154,"您访问的内容已关闭"),

    // 文章发布频道错误
    ARTICLE_PUBLISH_ERROR(400,"您访问的内容已关闭"),
    ;



    private Integer code;

    private String message;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }



}
